﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace myCommon.Timing
{
    class Delay
    {
        public void WaitMS(int MSeconds)
        {
            long nowMS;
            long starttime = DateTime.Now.Ticks / 10000;
            long endtime = starttime + MSeconds;
            do
            {
                nowMS = DateTime.Now.Ticks / 10000;

            } while (nowMS < endtime);

        }
    }
}
